<!--<?
include L::getHtmlTpl('/html/head.html');
?>-->
<div style="width: 90%;padding-left: 100px">
    <form action="" id="myform" class="row">
        <input type="hidden" name="account" _value="$this->account">
        <input type="hidden" name="id" _value="$this->id">
        <table style="" width="90%" border="1">
            <tr style="text-align: center">
                <td>SKU</td>
                <td>属性</td>
                <td>币种</td>
                <td>售价</td>
                <td>msrp(美元)</td>
            </tr>
            <!--<? foreach ($this->skuInfo as $row) { ?>-->
            <tr style="text-align: center">
                <td><!--<? echo $row['Variant']['sku'] ?>--></td>
                <td><!--<? echo !empty($row['Variant']['size']) ? $row['Variant']['size'] : '' ?>--></td>
                <td><!--<? echo $row['Variant']['localized_currency_code'] ?>--></td>
                <td>
                    <input type="number" _value="$row['Variant']['localized_price']" _name="'price[' . $row['Variant']['sku'] . ']'" class="skuPrice">
                </td>
                <td>
                    <input type="number" _value="$row['Variant']['msrp']" _name="'msrp[' . $row['Variant']['sku'] . ']'" class="skuMsrp">
                </td>
            </tr>
            <!--<? } ?>-->
        </table>
        <input type="hidden" name="oldPriceInfo" _value="$this->oldPriceInfo">
    </form>
</div>
<div style="position:fixed; right:0px; bottom:10px; z-index:10008; padding: 10px; background: #fff;">
    <div style="padding: 10px 0px 0px 0px;">
        <input class="btn btn-oper btn-warning" type="button" value="按百分比增加售价" onclick="wishProductObj.updateSkuPrice('percentage', 'skuPrice')">
        <input class="btn btn-oper btn-warning" type="button" value="按百分比增加MSRP" onclick="wishProductObj.updateSkuPrice('percentage', 'skuMsrp')">
        <input class="btn btn-oper btn-danger" type="button" value="按数值增加售价" onclick="wishProductObj.updateSkuPrice('numberAdd', 'skuPrice')">
        <input class="btn btn-oper btn-danger" type="button" value="按数值增加MSRP" onclick="wishProductObj.updateSkuPrice('numberAdd', 'skuMsrp')">
        <input class="btn btn-oper btn-info" type="button" value="按数值替换售价" onclick="wishProductObj.updateSkuPrice('number', 'skuPrice')">
        <input class="btn btn-oper btn-info" type="button" value="按数值替换MSRP" onclick="wishProductObj.updateSkuPrice('number', 'skuMsrp')">
        <div style="padding: 10px 0px 0px 0px;text-align: right">
            <input class="btn btn-oper btn-success" type="button" value="确认修改" onclick="wishProductObj.submitUpdatePrice()">
        </div>
    </div>
</div>
<script _src="ROOT_URL.'/view/js/base.js'"></script>
<script _src="ROOT_URL.'/view/js/wish/wishProduct.js'"></script>